/*
class2要继承class1，就要使用@extend class1
*/
.clearfix {
    &:after {
        content: "";
        display: table;
        clear: both;
    }
}

.relative {
    position: relative;
    width: 100%;
    height: 100%;
}

/*
混合宏@Mixin，就要使用 @include class1()
*/
@mixin wh($width, $height) {
    width: $width;
    height: $height;
}

@mixin post-top-left($post, $top, $left) {
    position: $post;
    top: $top;
    left: $left;
}

@mixin post-top-right($post, $top, $right) {
    position: $post;
    top: $top;
    right: $right;
}

@mixin fontColor($size, $color) {
    font-size: $size;
    color: $color;
}

@mixin scrollBar {
    &::-webkit-scrollbar-track-piece {
        background: #d3dce6;
    }

    &::-webkit-scrollbar {
        width: 6px;
    }

    &::-webkit-scrollbar-thumb {
        background: #99a9bf;
        border-radius: 20px;
    }
}